#ifndef PRODUCTINWAREHOUSEADDITIONMODEL_H
#define PRODUCTINWAREHOUSEADDITIONMODEL_H

#include "standard-database-model.h"

class ProductInWarehouseAdditionModel : public StandardDatabaseModel
{
    Q_OBJECT
public:
    explicit ProductInWarehouseAdditionModel(QObject *parent = 0);

    enum ProductInWarehouseAdditionColumns
    {
        NameColumn,
        PriceColumn,
        VatColumn,
        QuantityColumn
    };

    void initialize();

private slots:
    void loadData();

private slots:
    void setupInternalModel();
    void continueLoadData(ModelResult *result);
    void continueLoadData2(ModelResult *result);

private:
    QAbstractTableModel* m_productInWarehouseModel;
};

#endif // PRODUCTINWAREHOUSEADDITIONMODEL_H
